package sjtu.ist.warehouse4ws.model;

import java.util.HashSet;
import java.util.Set;

/**
 * ShiroUser entity. @author MyEclipse Persistence Tools
 */

public class ShiroUser implements java.io.Serializable {

	// Fields

	private Integer userId;
	private String username;
	private String password;
	private Integer companyId;
	private Set<ShiroRole> shiroRoles = new HashSet<ShiroRole>();

	// Constructors

	/** default constructor */
	public ShiroUser() {
	}

	/** full constructor */
	public ShiroUser(String username, String password, Integer companyId,
			Set shiroRoles) {
		this.username = username;
		this.password = password;
		this.companyId = companyId;
		this.shiroRoles = shiroRoles;
	}
	public ShiroUser(String username, String password, Integer companyId
			) {
		this.username = username;
		this.password = password;
		this.companyId = companyId;
	
	}
	// Property accessors

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getCompanyId() {
		return this.companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	public Set<ShiroRole> getShiroRoles() {
		return this.shiroRoles;
	}

	

	public void setShiroRoles(Set<ShiroRole> shiroRoles) {
		this.shiroRoles = shiroRoles;
	}

}